package schema

import (
	"entgo.io/ent"
	"entgo.io/ent/schema/field"
	"time"
)

type Vip struct {
	ent.Schema
}

func (Vip) Fields() []ent.Field {
	return []ent.Field{
		field.Int("id"),
		field.Int("category").Default(0),
		field.String("name").Default(""),
		field.Int("price").Default(0),
		field.Int("duration").Default(0),
		field.Time("create_time").Default(time.Now),
		field.Time("update_time").Default(time.Now).UpdateDefault(time.Now),
	}
}
